<?php
/***********************************************
	This class would prepare the search
	keywords.
************************************************/
class SearchKeywordsPreparer {
	private $inTitleCase = NULL;
	private $preparedSearchKeywords = NULL;
	
	/************************************************************/
	
	function prepareSearchKeywords($searchKeywords) {
		$this->inTitleCase = ucwords(strtolower($searchKeywords));
		$this->preparedSearchKeywords = str_replace(" ", "+", $this->inTitleCase);
		
		return $this->preparedSearchKeywords;
	}
}
?>